<!DOCTYPE html>
<html perf-error="desktop/" ng-app="eleme" class="ng-scope">
<head>
    <meta charset="UTF-8">
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title class="ng-binding" ng-bind="SEO.title">{{ $businesses[0] -> username }}</title>

    <link rel="stylesheet" type="text/css" href="{{asset('home/shop/css/index.css')}}" media="all">
</head>
<body class="hidesidebar" style="position: relative;" cute-title=""
      ng-class="{hidesidebar: layoutState &amp;&amp; layoutState.hideSidebar, smallbody: layoutState.smallBody, whitebody: layoutState.whiteBody}">

<div class="ng-isolate-scope" state="layoutState" ng-switch="state.type"><!-- ngSwitchWhen: checkout -->
    <!-- ngSwitchDefault:  -->
    <div class="ng-scope ng-isolate-scope" ng-switch-default="" topbar-default="" state="state">
        <header class="topbar shoptopbar" role="navigation" ng-class="{shoptopbar: state.type === 'shop'}">
            <div class="container clearfix"><h1><a href="{{asset('')}}" hardjump="" class="topbar-logo icon-logo"><span>饿了么</span></a>
                </h1><a href="{{asset('')}}" hardjump="" class="topbar-item topbar-homepage"
                        ng-class="{'focus': $root.locationpath[0] === 'place'}">首页</a> <a
                        href="{{asset('')}}profile/order" hardjump="" class="topbar-item"
                        ng-class="{'focus': $root.locationpath[1] === 'order'}">我的订单</a>
                <nav class="topbar-nav">
                    {{--<a--}}
                    {{--href="{{asset('')}}support/center"--}}
                    {{--hardjump="" class="topbar-nav-link"--}}
                    {{--target="_blank"><i--}}
                    {{--class="topbar-nav-icon icon-service"></i>服务中心</a>--}}
                    <div class="topbar-nav-link"><i class="topbar-nav-icon icon-mobile"></i>手机应用
                        <div class="dropbox topbar-mobile-dropbox"><span>扫一扫, 手机订餐更方便</span> <img
                                    src="{{asset('home/shop/images/appqc.95e532.png')}}"
                                    class="topbar-nav-qrcode"
                                    alt="扫一扫下载饿了么手机 App">
                        </div>
                    </div>
                </nav>
            </div>
        </header>
    </div>
</div>
<div class="importantnotification container" role="banner"><!-- ngIf: enable --></div>
<div ng-hide="layoutState &amp;&amp; layoutState.hideSidebar" class="sidebar ng-hide" role="complementary">
    <div class="sidebar-tabs">
        <div class="toolbar-tabs-middle"><a class="toolbar-btn icon-order toolbar-close"
                                            href="{{asset('')}}profile/order" hardjump="" tooltip="我的订单"
                                            tooltip-placement="left" ubt-click="toolbar_order">
                <!-- ngIf: sidebarCount.uncompletedOrder > 0 --></a>
            <div class="toolbar-separator"></div>
            <a class="toolbar-cartbtn icon-cart toolbar-open" href="javascript:" template="cart"
               ng-class="{'focus': (activeTemplate === 'cart' &amp;&amp; isSidebarOpen), 'toolbar-cartbtn-shownum': foodCount.count}"
               ubt-click="390">购物车<!-- ngIf: foodCount.count --></a>
            <div class="toolbar-separator"></div>
            <a class="toolbar-btn icon-notice toolbar-open modal-hide" href="javascript:" template="message"
               ng-class="{'focus': (activeTemplate === 'message' &amp;&amp; isSidebarOpen), 'toolbar-open': user, 'modal-hide': user}"
               tooltip="我的信息" tooltip-placement="left" ubt-click="392"><!-- ngIf: messageCount.count --></a></div>
        <div class="toolbar-tabs-bottom">
            <div class="toolbar-btn icon-QR-code">
                <div class="dropbox toolbar-tabs-dropbox"><a
                            href="http://static11.elemecdn.com/eleme/desktop/mobile/index.html" target="_blank"><img
                                src="{{asset('home/shop/images/appqc.95e532.png')}}"
                                alt="下载手机应用">
                        <p>下载手机应用</p>
                        <p class="icon-QR-code-bonus">即可参加分享红包活动</p></a></div>
            </div>
            <a style="visibility: visible;" class="toolbar-btn icon-service" online-service="" tooltip="在线客服"
               title="在线客服" tooltip-placement="left" id="live800iconlink" target="_blank" href="javascript:"></a> <a
                    style="visibility: hidden;" class="toolbar-btn sidebar-btn-backtop icon-top" tooltip="回到顶部"
                    title="回到顶部"
                    href="javascript:" tooltip-placement="left"></a></div>
    </div>
    <div class="sidebar-content">
        <!-- ngInclude: activeTemplate ? ('/common/page/_block/sidebar/sidebar-'+ activeTemplate + '/sidebar-'+ activeTemplate + '.html') : '' --></div>
</div>
<!-- ngView:  -->
<div class="ng-scope" ng-view="" role="main">
    <div shop-guide="" data="shop" isdisabled="shop.disabled" class="shopguide ng-isolate-scope">
        <div class="container" ng-show="shop" itemscope="" itemtype="http://schema.org/Restaurant">
            <div class="shopguide-info">
                <meta itemprop="url" content="https://www.ele.me/shop/1300459">
                <img src="{{ $businesses[0] -> img }}"

                     ng-src="//fuss10.elemecdn.com/6/43/2354b2045706b590caf9378fca9eepng.png?imageMogr2/thumbnail/95x95"
                     alt="小蜀娘家常菜" itemprop="image">
                <div class="shopguide-info-wrapper">
                    <div><h1 class="ng-binding" title="username" ng-class="{hastip: shop.tip}"
                             itemprop="name">{{ $businesses[0] -> username }}</h1>
                        <!-- ngIf: shop.tip --></div>
                    <p class="shopguide-info-rate">
                        <!-- <div rate-star="" rating="shop.rating" class="starrating icon-star ng-isolate-scope" title="评分3.5分">
                            <span style="width: 70%;" class="icon-star" ng-style="{ width: (rating * 20) + '%' }"></span>
                        </div> -->

                    <!-- <a href="{{asset('')}}shop/1300459/rate" class="ng-binding"
                        ng-href="/shop/1300459/rate">811</a> 
                        <span class="ng-binding">月售2789单</span></p>
                        <p> -->
                        <!-- ngRepeat: flavor in shop.flavor -->
                        <!-- </p> -->
                </div>
                <div class="shopguide-info-extra">
                    <ul><!-- ngIf: shopRatingScore -->
                        <li class="shopguide-extra-item shopguide-extra-compete ng-scope" ng-if="shopRatingScore">
                            <div itemscope="" itemprop="aggregateRating" itemtype="http://schema.org/AggregateRating">
                                <h2 class="color-stress ng-binding" itemprop="ratingValue">3.5</h2>
                                <meta itemprop="bestRating" content="5">
                                <meta itemprop="reviewCount" content="811">
                                <p>综合评价<br><span class="color-mute ng-binding">与周边商家持平</span>
                                    <!-- ngIf: shopRatingScore.compare_rating --></p></div>
                            <div><p>服务态度
                                <div rate-star="" rating="shopRatingScore.service_score"
                                     class="starrating icon-star ng-isolate-scope" title="评分3.5分"><span
                                            style="width: 70%;" class="icon-star"
                                            ng-style="{ width: (rating * 20) + '%' }"></span></div>
                                <span class="color-stress ng-binding">3.5分</span></p>
                                <p>菜品评价
                                <div rate-star="" rating="shopRatingScore.food_score"
                                     class="starrating icon-star ng-isolate-scope" title="评分3.5分"><span
                                            style="width: 70%;" class="icon-star"
                                            ng-style="{ width: (rating * 20) + '%' }"></span></div>
                                <span class="color-stress ng-binding">3.5分</span>
                                </p>
                            </div>
                        </li><!-- end ngIf: shopRatingScore --><!-- ngIf: shop.description -->
                        <li class="shopguide-extra-item address">
                            <p itemscope="" itemprop="streetAddress" itemtype="http://schema.org/PostalAddress"><span
                                        class="label">商家地址：</span> <span
                                        class="ng-binding">{{ $businesses[0] -> business_address }}</span>
                                <meta itemprop="telephone" content="17319189785 18210525923">
                            </p>
                            <p><span class="label">营业时间：</span> <span class="ng-binding"
                                                                      itemprop="openingHours">{{ $businesses[0] -> worktime }}</span>
                            </p></li>
                        <li class="shopguide-extra-item"><p class="shopguide-extra-delivery">由<span
                                        class="ng-binding">{{ $businesses[0] -> username }}</span>提供配送服务
                            </p></li>
                    </ul>
                </div>
            </div>
            <div class="shopguide-server"><span class="" ng-hide="shop.id == 656683"><em>起送价</em> <em
                            class="shopguide-server-value ng-binding">20元</em></span> <span class=""
                                                                                            ng-hide="shop.id == 656683"><em>配送费</em> <em
                            class="shopguide-server-value ng-binding">5元</em>
                    <!-- ngIf: shop.delivery_mode.description --></span> <span class="" ng-hide="shop.id == 656683"><em>平均送达速度</em> <em
                            class="shopguide-server-value ng-binding">40分钟</em></span></div>
            <a class="shopguide-favor" href="javascript:" ng-click="favor()"><!-- ngIf: isFavorShop -->
                <!-- ngIf: !isFavorShop --><i ng-if="!isFavorShop" class="icon-favorite ng-scope"></i>
                <!-- end ngIf: !isFavorShop --> <!-- ngIf: isFavorShop --> <!-- ngIf: !isFavorShop --><span
                        class="ng-scope" ng-if="!isFavorShop">收藏</span><!-- end ngIf: !isFavorShop --></a></div>
    </div>
    <div class="ng-scope ng-isolate-scope" shop-nav="" data="shop" filter-data="shop.filter"
         display-type="shop.displayType" shop-action="shopAction">
        <div class="shopnav">
            <div class="container clearfix">
                <div class="shopnav-left"><a class="shopnav-tab active" href="#"
                                             ng-class="{active: shop.tab === 'index'}">所有商品</a>

                </div>
                <div class="shopnav-search">
                    <!-- <form class="place-search ng-pristine ng-valid" role="search" ng-submit="search()">
                        <button ubt-data-keyword="" class="place-search-btn icon-search" ubt-click="403"
                                title="搜索商家或美食"></button>
                        <label for="globalsearch">搜索商家或美食</label><input id="globalsearch"
                                                                        class="place-search-input ng-pristine ng-valid"
                                                                        ng-model="searchText" autocomplete=""
                                                                        placeholder="搜索商家,美食..."></form> -->
                </div>
            </div>
        </div>
    </div>
    <div class="shopmain clearfix container ng-scope"><!-- ngIf: shopAction === 'menu' -->
        <div ng-if="shopAction === 'menu'" shop-menu="" shop-cache="shopCache" filter-data="shop.filter"
             display-type="shop.displayType" class="shopmenu ng-isolate-scope" perf-click="desktop/201">
            <div loading="" ng-show="loading" class="loading ng-binding ng-isolate-scope ng-hide">
                <!-- ngIf: type==='profile' --><img class="ng-scope" ng-if="type==='profile'"
                                                    src="{{asset('home/shop/images/profile-loading.4984fa.gif')}}"
                                                    alt="正在加载">
                <!-- end ngIf: type==='profile' --> <!-- ngIf: type==='normal' -->正在载入数据...
            </div>

            <div ng-show="!loading &amp;&amp; !searchEnv" class="shopmenu-nav ng-isolate-scope" sticky=""
                 sticky-class="sticky" sticky-body-class="shopmenu-nav-sticky" sticky-fn="shopNavSticky">
                <!-- 遍历商品分类头页 -->


                <!-- ngRepeat: category in categorys --><a class="ng-binding ng-scope active" href="javascript:"
                                                           ng-repeat="category in categorys"
                                                           ng-click="scrollToCategory(category)"
                                                           ng-class="{active: currentCategory.id === category.id}">热销产品</a>
                <!-- end ngRepeat: category in categorys -->

            @foreach($goods as $good)

                @if($good -> pid == 0)
                    <!-- ngRepeat: category in categorys --><a class="ng-binding ng-scope active" href="javascript:"
                                                               ng-repeat="category in categorys"
                                                               ng-click="scrollToCategory(category)"
                                                               ng-class="{active: currentCategory.id === category.id}">{{ $good -> proname }}</a>
                        <!-- end ngRepeat: category in categorys -->
                    @endif
                @endforeach
            </div>

            <div style="margin-top: 0px;" ng-show="!loading" class="shopmenu-main grid"
                 ng-class="{grid: displayType === 'grid', list: displayType === 'list'}">
                <!-- ngIf: filterData === 'default' && !searchEnv -->
                <div class="ng-scope" ng-if="filterData === 'default' &amp;&amp; !searchEnv">
                    <!-- ngRepeat: category in categorys -->
                    <!-- 遍历商品类 -->
                    <!-- -------------------------- -->
                    <div class="shopmenu-list clearfix ng-scope" ng-repeat="category in categorys">
                        <h3 class="shopmenu-title ng-binding">

                            热销产品
                            <!-- <span class="shopmenu-des ng-binding">大家喜欢吃，才叫真好吃。</span> -->

                        </h3>
                        <!-- ngRepeat: food in category.foods -->
                        <!-- 遍历所有商品 -->
                        @foreach($goods as $goodh)
                            @if($goodh -> hot == 1 && $goodh -> is_del == 0)
                                <div ng-repeat="food in category.foods" shop-menu-item="" food="food" shop="shopCache"
                                     class="shopmenu-food ng-isolate-scope" ng-class="{noimg: !food.image_path}"
                                     id="127645184">
                                    <!-- ngIf: food.image_path -->
                                    <span class="col-1 ng-scope" ng-if="food.image_path">
                                <a href="javascript:" ng-click="showInfo(food)">
                                    <img src="{{ $goodh-> image }}"
                                         ng-src="//fuss10.elemecdn.com/3/ad/e61731b126dbca2d238efedfb1db4jpeg.jpeg?imageMogr2/thumbnail/100x100"
                                         alt="红烧狮子头-个的图片">
                                </a>
                            </span><!-- end ngIf: food.image_path -->
                                    <div class="col-2 shopmenu-food-main"><h3
                                                class="shopmenu-food-name ui-ellipsis ng-binding">
                                            {{ $goodh -> proname }}</h3>
                                        <p class="color-mute ui-ellipsis ng-binding" tooltip=""></p>
                                        <p>
                                        <div rate-star="" rating="food.rating"
                                             class="starrating icon-star ng-isolate-scope"
                                             title="评分4.4分"><span style="width: 87.4%;" class="icon-star"
                                                                  ng-style="{ width: (rating * 20) + '%' }"></span>
                                        </div>

                                        <span class="color-mute ng-binding">(46)</span> <span
                                                class="color-mute ng-binding">销量{{ $goodh -> sales }}</span></p>
                                    </div>
                                    <span class="col-3 shopmenu-food-price color-stress ng-binding">{{ $goodh -> price }}
                                        <small
                                                class="ng-binding"></small></span> <span class="col-4"><div
                                                class="ng-isolate-scope"
                                                shop-cartbutton=""
                                                food="food"
                                                ng-hide="shop.id == '656683'"><!-- ngIf: !menuFood.hasSpec --><div
                                                    class="ng-scope" ng-if="!menuFood.hasSpec"><!-- ngIf: !cartItem.quantity && menuFood.stock -->
                                                <!-- ngIf: !menuFood.stock -->
                                                <!-- ngIf: cartItem.quantity > 0 || cartItem.quantity === '' -->
                                        <button ng-click="addshop"
                                                ng-if="!cartItem.quantity &amp;&amp; menuFood.stock"
                                                class="shop-cartbutton ng-binding ng-scope">加入购物车</button>
                                                <!-- end ngIf: cartItem.quantity > 0 || cartItem.quantity === '' --></div>
                                            <!-- end ngIf: !menuFood.hasSpec -->
                                            <!-- ngIf: menuFood.hasSpec --></div></span>
                                </div>
                        @endif
                    @endforeach
                    <!-- end ngRepeat: food in category.foods -->
                    </div><!-- end ngRepeat: category in categorys -->


                    <!-- ---------------- -->
                    @foreach($goods as $goodf)
                        <div class="shopmenu-list clearfix ng-scope" ng-repeat="category in categorys">
                            <h3 class="shopmenu-title ng-binding">

                            @if($goodf -> pid == 0)
                                {{ $goodf -> proname }}
                                <!-- <span class="shopmenu-des ng-binding">大家喜欢吃，才叫真好吃。</span> -->
                                @endif
                            </h3>
                            <!-- ngRepeat: food in category.foods -->
                            <!-- 遍历所有商品 -->
                            @foreach($goods as $good)
                                {{--TODO: 二级分类遍历--}}
                                {{--@if($goodf -> id == $good -> pid && $good -> is_del == 0)--}}
                                @if( $good -> is_del == 0)
                                    {{--@if(true)--}}
                                    <div ng-repeat="food in category.foods" shop-menu-item="" food="food"
                                         shop="shopCache"
                                         class="shopmenu-food ng-isolate-scope" ng-class="{noimg: !food.image_path}"
                                         id="127645184">
                                        <!-- ngIf: food.image_path -->
                                        <span class="col-1 ng-scope" ng-if="food.image_path">
                                <a href="javascript:" ng-click="showInfo(food)">
                                    <img src="{{ $good-> image }}"
                                         ng-src="//fuss10.elemecdn.com/3/ad/e61731b126dbca2d238efedfb1db4jpeg.jpeg?imageMogr2/thumbnail/100x100"
                                         alt="红烧狮子头-个的图片">
                                </a>
                            </span><!-- end ngIf: food.image_path -->
                                        <div class="col-2 shopmenu-food-main"><h3
                                                    class="shopmenu-food-name ui-ellipsis ng-binding">
                                                {{ $good -> proname }}</h3>
                                            <p class="color-mute ui-ellipsis ng-binding" tooltip=""></p>
                                            <p>
                                            <div rate-star="" rating="food.rating"
                                                 class="starrating icon-star ng-isolate-scope"
                                                 title="评分4.4分"><span style="width: 87.4%;" class="icon-star"
                                                                      ng-style="{ width: (rating * 20) + '%' }"></span>
                                            </div>
                                            <span class="color-mute ng-binding">(46)</span> <span
                                                    class="color-mute ng-binding">销量{{ $good -> sales }}</span></p>
                                        </div>
                                        <span class="col-3 shopmenu-food-price color-stress ng-binding">{{ $good -> price }}
                                            <small

                                                    class="ng-binding"></small></span> <span class="col-4"><div
                                                    class="ng-isolate-scope"
                                                    shop-cartbutton=""
                                                    food="food"
                                                    ng-hide="shop.id == '656683'"><!-- ngIf: !menuFood.hasSpec --><div
                                                        class="ng-scope" ng-if="!menuFood.hasSpec"><!-- ngIf: !cartItem.quantity && menuFood.stock -->
                                                    <!-- ngIf: !menuFood.stock -->
                                                    <!-- ngIf: cartItem.quantity > 0 || cartItem.quantity === '' -->
                                                                                            <p style="display:none">{{$good->id}}</p>

                                        <button ng-click="addshop"
                                                ng-if="!cartItem.quantity &amp;&amp; menuFood.stock"
                                                class="shop-cartbutton ng-binding ng-scope">加入购物车</button>
                                                    <!-- end ngIf: cartItem.quantity > 0 || cartItem.quantity === '' --></div>
                                                <!-- end ngIf: !menuFood.hasSpec -->
                                                <!-- ngIf: menuFood.hasSpec --></div></span>
                                    </div>
                            @endif
                        @endforeach
                        <!-- end ngRepeat: food in category.foods -->
                        </div><!-- end ngRepeat: category in categorys -->

                    @endforeach
                </div><!-- end ngIf: filterData === 'default' && !searchEnv -->
                <!-- ngIf: filterData !== 'default' || searchEnv -->
                <div class="ng-isolate-scope" shop-cart="" cart-link="cartLink" ng-hide="shopCache.id == 656683">
                    <div class="shop-cart">
                        <div style="top: -133px; height: auto;" class="shop-cartbasket" id="shopbasket">
                            <div class="ng-isolate-scope" shop-groupswitcher="" cart="shopCart">
                                <!-- ngIf: shopCart.vm.groups.length > 1 -->
                                <div class="shop-grouphead single"
                                     ng-class="{ single: shopCart.vm.groups.length === 1 }">
                                    <!-- ngIf: shopCart.vm.groups.length === 1 --><a href="javascript:"
                                                                                     class="icon-cart-add ng-scope"
                                                                                     ng-if="shopCart.vm.groups.length === 1"
                                                                                     ng-click="addGroup()"
                                                                                     tooltip="添加购物车"></a>
                                    <!-- end ngIf: shopCart.vm.groups.length === 1 -->
                                    <!-- ngIf: showGuide && shopCart.vm.groups.length === 1 -->
                                    <div class="shop-grouphead-row"><!-- ngIf: shopCart.vm.groups.length > 1 -->购物车
                                        <a
                                                href="javascript:"
                                                ng-click="shopCart.clearGroup(shopCart.currentGroupIndex)">[清空]</a>
                                    </div>
                                </div>
                            </div><!-- ngIf: !shopCart.vm.groups[shopCart.currentGroupIndex].length -->
                            <!-- ngRepeat: item in shopCart.vm.groups[shopCart.currentGroupIndex] -->

                        {{--TODO: 购物车--}}

                        {{--div item--}}


                        <!-- ngIf: shopCart.packingFee -->
                        </div>
                        <div class="shop-cartfooter" ng-click="shopCart.toggleCart()"><span
                                    class="icon-cart shop-carticon"><!-- ngIf: shopCart.vm.quantity > 0 --><span
                                        class="shop-cartpieces ng-binding ng-scope" ng-bind="shopCart.vm.quantity"
                                        ng-if="shopCart.vm.quantity > 0">1</span>
                                <!-- end ngIf: shopCart.vm.quantity > 0 --></span>
                            <!-- ngIf: shopCart.vm.quantity > 0 -->

                            <!-- ngIf: shopCart.vm.extras.length && !shopCart.vm.button.disabled -->

                            <form action="{{url('')}}/cart/checkout" method="get">
                                <input type="hidden" name="business_id" value="{{ $businesses[0] -> id }}">
                                <input type="hidden" name="user_id" value="1">
                                <button class="shop-cartfooter-checkout ng-binding"
                                        type="submit"
                                        ng-class="{disabled: shopCart.vm.button.name !== 'CAN_ORDER'}"
                                        ng-disabled="shopCart.vm.button.disabled" ng-bind="shopCart.vm.button.text"
                                        ng-click="checkout($event)">去结算 &gt;</button>
                            </form>

                        </div>
                    </div>
                </div>
                <div style="display: none;" dialog="ITEMINFO" class="dialog" role="dialog">
                    <div class="dialog-close icon-close"></div>
                    <div class="dialog-content" ng-transclude="">
                        <div class="ng-scope ng-isolate-scope" shop-iteminfo="" item-info="itemInfo">
                            <div class="shop-iteminfo">
                                <div class="iteminfo-imagegroup"><img class="mainimage" ng-src="" alt="的图片">
                                    <div class="ng-hide" ng-show="imagesPath.length > 1"><a href="javascript:"
                                                                                            ng-click="showImageNext(-4)"
                                                                                            class="imagegroup-ctrl icon-profile-left-arrow"></a>
                                        <ul class="imagelist">
                                            <!-- ngRepeat: imagePath in imagesPath track by $index --></ul>
                                        <a href="javascript:" ng-click="showImageNext(4)"
                                           class="imagegroup-ctrl icon-profile-right-arrow"></a></div>
                                </div>
                                <section class="iteminfo-info"><h5 class="ng-binding" ng-bind="itemInfo.name"></h5>
                                    <p ng-show="!!itemInfo.description" class="description ng-binding ng-hide"
                                       ng-bind="itemInfo.description"></p>
                                    <div class="iteminfo-cartitem">
                                        <div class="iteminfo-price"><span class="price"><span class="yen">¥</span> <span
                                                        class="price ng-binding"
                                                        ng-bind="itemInfo.price + (itemInfo.specfoods_id.length > 1 ? '起' : '')"></span></span>
                                            <!-- ngIf: itemInfo.original_price --></div><!-- ngIf: itemInfo.name -->
                                    </div>
                                    <div class="iteminfo-rate"><!-- ngIf: ratingCount -->
                                        <ul class="rategroup"><!-- ngRepeat: item in ratePageContext.pageData --></ul>
                                        <div class=" pagination" pagination="" pagination-context="ratePageContext"
                                             pagination-pagesize="3">
                                            <ul></ul>
                                        </div>
                                    </div>
                                </section>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div><!-- end ngIf: shopAction === 'menu' --><!-- ngIf: shopAction === 'rate' -->
        <!-- ngIf: shopAction === 'info' -->
        <div shop-bulletin="" data="shop" class="shopmain-right ng-isolate-scope">
            <div class="shopbulletin">
                <div class="shopbulletin-section"><h3 class="shopbulletin-section-title">商家公告</h3>
                    <p class="shopbulletin-content ng-binding">{{ $businesses[0] -> des }}</p>
                    <div class="shopbulletin-delivery"><h4>配送说明：</h4>
                        <p class="ng-binding">配送费¥5</p></div>
                    <ul class="shopbulletin-supports"><!-- ngRepeat: support in shop.supports --></ul>
                    <a href="javascript:" class="shopcomplaint" ng-click="testLogin()">举报商家</a></div>
                <div style="display: none;" dialog="complaintDialog" class="dialog" role="dialog">
                    <div class="dialog-close icon-close"></div>
                    <div class="dialog-content" ng-transclude=""><h5 class="complaint-title ng-scope">举报商家</h5>
                        <form class="ng-scope ng-pristine ng-valid" ng-submit="complaint()"><label
                                    class="complaint-field"><textarea
                                        class="shopcomplaint-textarea ng-pristine ng-valid"
                                        ng-model="complaintObj.text" rows="6"
                                        cols="40"></textarea></label>
                            <div class="complaint-field">
                                <button type="submit" class="btn-primary">提交</button>
                            </div>
                        </form>
                    </div>
                </div><!-- ngIf: shop.identification --></div>
        </div>
    </div>
    <div side-tools="" class="sidetools"><a href="http://kaidian.ele.me/" class="sidetools-item icon-visit-history"
                                            target="_blank" title="我要开店" tooltip="我要开店" tooltip-placement="left"></a>
        <div class="sidetools-item icon-qrcode"><img class="sidetools-qrcode"
                                                     src="{{asset('home/shop/images/appqc.95e532.png')}}"

                                                     alt="扫描二维码免费下载手机App"></div>
        <a style="visibility: visible;" href="javascript:" class="sidetools-item icon-service" title="在线客服"
           tooltip="在线客服" tooltip-placement="left" online-service="" target="_blank"></a> <a href="javascript:"
                                                                                             class="sidetools-item icon-arrow-up"
                                                                                             title="回到顶部" tooltip="回到顶部"
                                                                                             tooltip-placement="left"
                                                                                             ng-click="backToTop()"></a>
    </div>
</div>
<footer class="footer" role="contentinfo">
    <div class="container clearfix">
        <div class="footer-link"><h3 class="footer-link-title">用户帮助</h3>
            <a class="footer-link-item"

               target="_blank">服务中心</a>
            <a
                    class="footer-link-item" target="_blank">常见问题</a>
            <a style="visibility: visible;" class="footer-link-item">在线客服</a></div>
        <div class="footer-link"><h3 class="footer-link-title">商务合作</h3><a class="footer-link-item"

                                                                           target="_blank">我要开店</a> <a
                    class="footer-link-item" target="_blank">加盟指南</a> <a
                    class="footer-link-item" target="_blank">市场合作</a></div>
        <div class="footer-link"><h3 class="footer-link-title">关于我们</h3><a class="footer-link-item"

                                                                           target="_blank">天下美食介绍</a> <a
                    class="footer-link-item" target="_blank">联系我们</a> <a
                    class="footer-link-item" target="_blank">规则中心</a>
        </div>
        <div class="footer-contect">
            <div class="footer-contect-item">24小时客服热线 : <a class="inherit" href="tel:137022223333">13702222333</a></div>
            <div class="footer-contect-item">意见反馈 : <a class="inherit" href="mailto:skyyint@qq.com">skyyint@qq.com</a>
            </div>
            <div class="footer-contect-item">关注我们 :
                <div href="JavaScript:" class="icon-wechat" ubt-click="402">
                    <div class="dropbox dropbox-bottom footer-contect-dropbox" ubt-visit="402"><img
                                src="{{asset('home/profile/images/wexinqc100@2x.393ade.png')}}"
                                alt="微信号: elemeorder">
                        <p>微信号: tianxia</p>
                        <p>天下美食上订餐</p></div>
                </div>
                <a class="icon-weibo" target="_blank"></a></div>
        </div>
        <div class="footer-mobile"><a target="_blank"><img
                        src="{{asset('home/profile/images/appqc.95e532.png')}}"

                        class="footer-mobile-icon"
                        alt="扫一扫下载天下美食手机 App"></a>
            <div class="footer-mobile-content"><h3>下载手机版</h3>
                <p>扫一扫,手机订餐方便</p></div>
        </div>
        <div class="footer-copyright serif">增值电信业务许可证 : <a target="_blank">沪B2-20150033</a> | <a
                    target="_blank">沪ICP备 09007032</a> | <a
                    target="_blank">上海工商行政管理</a> Copyright ©2008-2016 ele.me, All Rights Reserved.
        </div>
        <div class="footer-police container"><a rel="nofollow"
                                                target="_blank"><img alt="已通过沪公网备案，备案号 310100103568"
                                                                     src="{{asset('home/profile/images/picp_bg.e373b3.jpg')}}"
                                                                     height="30"></a></div>
    </div>
</footer>{{--脚页--}}

</body>

<script src="{{asset('home/blade/js/jquery-1.8.3.min.js')}}" type="text/javascript"></script>


<script type="text/javascript">
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });


    //    初始化样式
    $(".shop-cartbasket").css('top', '-44px');

    var shop_h = 0;     // 购物车条目步进高度
    var shop_h_f = 43;
    var i = 0;

    var login = '';

    // 点击加入购物车

    $("div[class='ng-isolate-scope'] button[ng-click='addshop']").live('click', function () {

        var good_id = $(this).prev().html();

        // 点击加入购物车时将值存入session
        $(this).parent().replaceWith('<div class="shop-cartctrl ng-scope"><button ng-click="sub" class="ctrl minus">-</button><input class="ctrl quantity ng-pristine ng-valid" value="' + ++i + '"><button ng-click="add" class="ctrl plus">+</button></div>');


        // 点击加入购物车时发ajax将商品ID值存入session
        $.get("/shop/cart/ajax", {'good_id': good_id, 'num': 1}, function (data) {

            var strShop = '<div class="shop-cartbasket-tablerow ng-scope" entityid="127662587"> ' +
                    '<div class="cell itemname ng-binding" title="' + data.proname + '">' + data.proname + '</div> ' +
                    '<div class="cell itemquantity"> ' +
//                    '<button ng-click="shopCart_sub">-</button> ' +
                    '<input class="ng-pristine ng-valid" ' +
                    'style="margin-left: -4px; margin-right: -4px" ' +
                    ' value="' + i + '"' +
                    'ng-blur="shopCart_input"> ' +
//                    '<button ng-click="shopCart_add">+</button> ' +
                    '</div> ' +
                    '<div ¥ class="cell itemtotal ng-binding">' + data.price + '</div> ' +
                    '</div><!-- end ngRepeat: item in shopCart.vm.groups[shopCart.currentGroupIndex] -->';


            var str_shop_cartfooter_text = '<p ng-bind="shopCart.vm.total | number" ng-if="shopCart.vm.quantity &gt; 0" class="shop-cartfooter-text price ng-binding ng-scope">0</p>';

            $(".shop-carticon").after(str_shop_cartfooter_text);
            $(".shop-cartfooter-text").html(i * data.price);

            shop_h = 43;
            shop_h_f += shop_h;     // shop_height_final 购物车条目最终高度
            $(".shop-cartbasket").css('top', '-' + shop_h_f + 'px');
            $(".shop-cartbasket").append(strShop);
        }, 'json');

        // 操作购物车商品数量
        $("button[ng-click='shopCart_add']").on('click', function () {
            $(this).prev().attr('value', ++i);
        });

        $("button[ng-click='shopCart_sub']").on('click', function () {
            $(this).next().attr('value', --i);
        });

        $(".plus").on('click', function () {
            $(this).prev().attr('value', ++i);
            $("input[class='ng-pristine ng-valid']").attr('value', i);
            var price = $(".itemtotal").html();
            console.log($("div[class='shop-cartfooter'] p"));
            $("div[class='shop-cartfooter'] p").html(i * price);

        });
        $(".minus").on('click', function () {
            $(this).next().attr('value', --i);
            $("input[class='ng-pristine ng-valid']").attr('value', i);
            if (i <= 0) {
                i = 1;
                $(this).parent().replaceWith('<div ng-if="!menuFood.hasSpec" class="ng-scope"><!-- ngIf: !cartItem.quantity && menuFood.stock --><button ng-click="addshop" ng-if="!cartItem.quantity &amp;&amp; menuFood.stock" class="shop-cartbutton ng-binding ng-scope">加入购物车</button></div>');

                shop_h_f -= shop_h;
                $(".shop-cartbasket").css('top', '-' + shop_h_f + 'px');
                $(".shop-cartbasket-tablerow").remove();
            }
        });


    });


    <!-- 李佳奇js事件 -->

    // test();
    // $(window).scroll(function(){
    //     test();
    // });


    // function test()
    // {
    //     var top_d = $('.shopmenu-nav').offset().top;
    //     var scroll_top = $(window).scrollTop();
    //     if(scroll_top > top_d)
    //     {
    //         $('.shopmenu-nav').css('position','fixed');
    //         $('.shopmenu-nav').css('top','5px');
    //         $('.shopmenu-nav').css('Z-index','12');
    //     }else
    //     {
    //         $('.shopmenu-nav').css('position','static');
    //     }
    // }


</script>

</html>
